using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace DataStructure
{
    public class LinkedList3Dictionary<Key, Value> : IDictionary<Key, Value>
    {
        private LinkedList3<Key, Value> _list;
        
        public LinkedList3Dictionary()
        {
            _list = new LinkedList3<Key, Value>();
        }
        public int Count => _list.Count;

        public bool IsEmpty => _list.IsEmpty;

        public void Add(Key key, Value value)
        {
            _list.Add(key, value);
        }

        public bool ContainsKey(Key key)
        {
            return _list.Contains(key);
        }

        public Value Get(Key key)
        {
            return _list.Get(key);
        }

        public void Remove(Key key)
        {
            _list.Remove(key);
        }

        public void Set(Key key, Value value)
        {
            _list.Set(key, value);
        }
    }
}